#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__

#include "gd32f4xx.h"


#ifndef u8
#define u8 uint8_t
#endif

#ifndef u16
#define u16 uint16_t
#endif

#ifndef u32
#define u32 uint32_t
#endif

void Protocol_init();
void Protocol_push(float *chns, int chn_cnt);
void Protocol_pull(unsigned char dat);
void Protocol_parse();

extern void smc_operation();//Superior-Machine-Control-Operation


#endif